<?php
namespace ApigilityActivity\V1\Rest\Activity;

use ApigilityAddress\DoctrineEntity\Address;
use ApigilityAddress\V1\Rest\Address\AddressEntity;
use ApigilityCatworkFoundation\Base\ApigilityObjectStorageAwareEntity;
// use ApigilityUser\DoctrineEntity\IncomeLevel;
// use ApigilityUser\DoctrineEntity\Occupation;
// use ApigilityUser\DoctrineEntity\PersonalCertification;
// use ApigilityUser\V1\Rest\IncomeLevel\IncomeLevelEntity;
// use ApigilityUser\V1\Rest\Occupation\OccupationEntity;
// use ApigilityUser\V1\Rest\PersonalCertification\PersonalCertificationEntity;
// use ApigilityUser\V1\Rest\ProfessionalCertification\ProfessionalCertificationEntity;

class ActivityEntity extends ApigilityObjectStorageAwareEntity
{
    /**
     * @Id @Column(type="integer")
     * @GeneratedValue
     */
    protected $id;

    /**
     * @Column(type="integer")
     */
    public $added_time;

    /**
     * 标题
     *
     * @Column(type="string", length=50, nullable=true)
     */
    protected $title;

    /**
     * 地址
     * @Column(type="string", length=50, nullable=true)
     */
    protected $address;


    /**
     * 年龄
     * @Column(type="smallint", nullable=true)
     */
    protected $age_to;

    /**
     * 特色
     * @Column(type="string", length=50, nullable=true)
     */
    protected $item;

    /**
     * 年龄
     * @Column(type="string", length=50, nullable=true)
     */
    protected $age_from;

     /**
     * 
     * @Column(type="string", length=50, nullable=true)
     */
    protected $man_num;

    /**
     * 
     * @Column(type="string", length=50, nullable=true)
     */
    protected $woman_num;

    /**
     * 
     * @Column(type="string", length=50, nullable=true)
     */
    protected $date;

    /**
     * 
     * @Column(type="string", length=50, nullable=true)
     */
    protected $today_where;

    /**
     * 
     * @Column(type="string", length=50, nullable=true)
     */
    protected $province_region_id;

    /**
     * 
     * @Column(type="string", length=50, nullable=true)
     */
    protected $city_region_id;

    /**
     * 
     * @Column(type="string", length=50, nullable=true)
     */
    protected $district_region_id;



    protected $tokens;

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getId()
    {
        return $this->id;
    }

    public function settitle($title)
    {
        $this->title = $title;
        return $this;
    }

    public function gettitle()
    {
        return $this->title;
    }

    public function getAddress()
    {
        return $this->address;
    }

    public function setAddress($address)
    {
        $this->address = $address;
        return $this;
    }

    public function getItem()
    {
        return $this->item;
    }

    public function setItem($item)
    {
        $this->item = $item;
        return $this;
    }


    public function setAgeTo($age_to)
    {
        $this->age_to = $age_to;
        return $this;
    }

    public function getAgeTo()
    {
        return $this->age_to;
    }

    public function setDate($date)
    {
        $this->date = $date;
        return $this;
    }

    public function getDate()
    {
        return $this->date;
    }

    public function setdistrictRegionId($district_region_id)
    {
        $this->district_region_id = $district_region_id;
        return $this;
    }

    public function getdistrictRegionId()
    {
        return $this->district_region_id;
    }

    public function setcityRegionId($city_region_id)
    {
        $this->city_region_id = $city_region_id;
        return $this;
    }

    public function getcityRegionId()
    {
        return $this->city_region_id;
    }

    public function setprovinceRegionId($province_region_id)
    {
        $this->province_region_id = $province_region_id;
        return $this;
    }

    public function getprovinceRegionId()
    {
        return $this->province_region_id;
    }

    public function settodayWhere($today_where)
    {
        $this->today_where = $today_where;
        return $this;
    }

    public function gettodayWhere()
    {
        return $this->today_where;
    }

    public function setManNum($man_num)
    {
        $this->man_num = $man_num;
        return $this;
    }

    public function getManNum()
    {
        return $this->man_num;
    }

    public function setWomanNum($woman_num)
    {
        $this->woman_num = $woman_num;
        return $this;
    }

    public function getWomanNum()
    {
        return $this->woman_num;
    }

    public function setAgeFrom($age_from)
    {
        $this->age_from = $age_from;
        return $this;
    }

    public function getAgeFrom()
    {
        return $this->age_from;
    }
    
    // public function setPersonalCertification($personalCertification)
    // {
    //     $this->personalCertification = $personalCertification;
    //     return $this;
    // }

    // public function getPersonalCertification()
    // {
    //     if ($this->personalCertification instanceof PersonalCertification) return $this->hydrator->extract(new PersonalCertificationEntity($this->personalCertification, $this->serviceManager));
    //     else return $this->personalCertification;
    // }

    public function setTokens($tokens)
    {
        $this->tokens = $tokens;
        return $this;
    }

    public function getTokens()
    {
        return $this->tokens->count();
    }

    
}
